import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import get from '@dfeidao/atom-web/local/get';
import set from '@dfeidao/atom-web/local/set';
import fire from '@dfeidao/atom-web/msg/fire';
import set_node_cls from '@dfeidao/atom-web/ui/set-node-cls';
export default async function a001(fd: IFeidaoAiBrowserComponent) {
	// todo

	const mg = fd.data.node.querySelector<HTMLDivElement>('[mg]');
	const mark = get(fd, 'first');
	console.log('mark:' + mark);
	if (mark === '打开' || mark === undefined) {
		fire('zjc-000005', 'a002');
		set_node_cls(mg, 'display-n', false);
		set(fd, 'first', '关闭');

	} else {
		set_node_cls(mg, 'display-n', true);
		set(fd, 'first', '打开');
	}

}
